#每四天一个周期，工作3天休息1天，努力每天提高1%，休息时每天下降1%
def dayUP_v1(df_work, df_rest):
    dayup = 1
    for i in range(365):
        if i % 4 == 3:  # 每四天休息一天
            dayup = dayup * (1 - df_rest)  # 休息日下降
        else:
            dayup = dayup * (1 + df_work)  # 工作日提高
    return dayup

df_work_v1 = 0.01
df_rest_v1 = 0.001
while dayUP_v1(df_work_v1, df_rest_v1) < 37.78:
    df_work_v1 += 0.001
    df_rest_v1 += 0.0001

print("工作日提高1%，休息日下降1‰时的努力参数是：{:.3f}".format(df_work_v1))